@import '@/styles/color';
@import '@/styles/token';
@sidebarWidth: 368px + 32px;

.rightSidebar {
  width: @sidebarWidth;
  box-sizing: content-box;
  border-left: @lineWidth @lineType @colorBorderSecondary;
  visibility: visible;
  opacity: 1;
  transition: opacity 0.3s ease-in-out, width 0.2s ease-in-out;
  position: relative;

  &.hide {
    width: 0;
    padding: 0;
    visibility: hidden;
    opacity: 0;
    border-left-width: 0;
    overflow: hidden;
  }
}
// .container-scroll{
//   padding: 0 @padding;
// }
.statistics-content {
  padding: @padding @paddingLg;
}

.container {
  box-sizing: border-box;
  height: 100%;
  z-index: 99;

  .container-content {
    width: 100%;
    height: 100%;
    padding: 0 @padding;
    overflow-x: hidden;
    overflow-y: hidden;
    position: relative;

    &:hover {
      overflow-y: auto;
    }

    .container-body {
      position: absolute;
      left: 16px;
      width: calc(@sidebarWidth - 32px);
    }
  }
}

.fold {
  position: absolute;
  top: 30px;
  right: 40px;
  width: 16px;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.3s ease, opacity 0.3s ease;

  &.show {
    visibility: visible;
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .container {
    display: none;
  }
}
